package service.impl;

import service.MyEnum;

/**
 * @Author Corday 天涯
 * @Date 2022/3/8 15:33
 */
public class MyEnumImpl implements MyEnum {
    @Override
    public void playEnum() {
     //枚举类是一个类型,用于保存并管理序列数据
    MySeason[] mys= MySeason.values();

    switch (MySeason.AUTUMN){
        case  SPRING:
            System.out.println("春有百花!");
        break;
        case SUMMER:
            System.out.println("夏有凉风!");
            break;
        case AUTUMN:
            System.out.println("秋赏月!");
            break;
        case WINTER:
            System.out.println("冬白雪!");
            break;
    }

    }
}
